home *** CD-ROM | disk | FTP | other *** search
/ Internet Info 1994 March / Internet Info CD-ROM (Walnut Creek) (March 1994).iso / security / doc / cert_advisories / CA-91:23.Apollo.crp.vulnerability < prev    next >
Encoding:
Text File  |  1991-12-17  |  4.1 KB  |  109 lines

  1. ===========================================================================
  2. CA-91:23                       CERT Advisory
  3.                  December 18, 1991
  4.             Hewlett Packard/Apollo Domain/OS crp Vulnerability
  5. ---------------------------------------------------------------------------
  6.  
  7. The Computer Emergency Response Team/Coordination Center (CERT/CC)
  8. has received information concerning a vulnerability in the crp facility
  9. in Hewlett Packard/Apollo Domain/OS.  This vulnerability is present on all
  10. HP/Apollo Domain/OS SR10 systems up through SR10.3.  Patches that address
  11. this problem will be available in the SR10.3 patch tape (~Feb 92) and in
  12. the SR10.4 software release.  Contact your local sales office for
  13. more information.
  14.  
  15. ---------------------------------------------------------------------------
  16.  
  17. I.   Description
  18.  
  19.      There is a security problem with the /usr/apollo/bin/crp facility.
  20.      A user who is not running crp is not vulnerable to this problem.
  21.  
  22. II.  Impact
  23.  
  24.      A person at a remote or local site can obtain the privileges of
  25.      the user who is running crp.
  26.  
  27. III. Workaround
  28.  
  29.      The suggested workaround is to disable two system calls that are
  30.      made by /usr/apollo/bin/crp.  The following steps should be
  31.      executed by root or another appropriate userid that has the
  32.      privilege to write in the directories involved.
  33.  
  34.      1.    Create a file "crplib.c" containing the four-line C program:
  35.  
  36.     extern void pad_$dm_cmd(void);
  37.     void pad_$dm_cmd() { }
  38.     extern void pad_$def_pfk(void);
  39.     void pad_$def_pfk() { }
  40.  
  41.      2.    Compile this program using '-pic':
  42.  
  43.     (AEGIS)  /com/cc crplib.c -pic
  44.     (UNIX)   /bin/cc -c crplib.c -W0,-pic
  45.     
  46.      3.    Copy the result to somewhere accessible to all users (/lib/crplib
  47.     is recommended).
  48.     
  49.     (AEGIS)  /com/cpf crplib.bin /lib/crplib
  50.     (AEGIS)  /com/edacl -p root prwx -g wheel rx -w rx /lib/crplib
  51.  
  52.     (UNIX)   /bin/cp crplib.o /lib/crplib
  53.     (UNIX)   /bin/chmod 755 /lib/crplib
  54.     
  55.      4.    a) Ensure that all users do an 'inlib' of that file before running crp.
  56.     One way to ensure this would be to replace the /usr/apollo/bin/crp
  57.     command by a shell script that does the inlib.  Doing this step
  58.     will force crp to use the null functions defined in step 1 above.
  59.     
  60.     (AEGIS)  /com/chn /usr/apollo/bin/crp crp.orig
  61.     (UNIX)   /bin/mv /usr/apollo/bin/crp /usr/apollo/bin/crp.orig
  62.     
  63.     b) Create the file /usr/apollo/bin/crp containing the shell script:
  64.     
  65.     (AEGIS)    #!/com/sh
  66.         /com/sh -c inlib /lib/crplib ';' /usr/apollo/bin/crp.orig ^*
  67.  
  68.     (UNIX)    #!/bin/sh
  69.         inlib /lib/crplib
  70.         exec /usr/apollo/bin/crp.orig "$@"
  71.     
  72.     c) Make this script executable.
  73.  
  74.     (AEGIS)    /com/edacl -p root prwx -g wheel rx -w rx /usr/apollo/bin/crp
  75.     (UNIX)    /bin/chmod 755 /usr/apollo/bin/crp
  76.  
  77.      ---------------
  78.  
  79.      NOTE: This workaround will prevent crp from making use of the two
  80.      system calls; and therefore, it may affect the functionality of various
  81.      software programs since they will be unable to define programmable
  82.      function keys, create new windows on the client node, or execute
  83.      background processes using the Display Manager interface.
  84.  
  85. ---------------------------------------------------------------------------
  86. The CERT/CC wishes to thank Paul Szabo of the University of Sydney for
  87. bringing this problem to our attention and providing a workaround.
  88. We would also like to thank Jim Richardson of the University of Sydney for
  89. his assistance and Hewlett Packard/Apollo for their timely response to the
  90. report of this vulnerability.
  91. ---------------------------------------------------------------------------
  92.  
  93. If you believe that your system has been compromised, contact CERT/CC via
  94. telephone or e-mail.
  95.  
  96. Internet E-mail: cert@cert.sei.cmu.edu
  97. Telephone: 412-268-7090 (24-hour hotline)
  98.            CERT/CC personnel answer 7:30a.m.-6:00p.m. EST(GMT-5)/EDT(GMT-4),
  99.            on call for emergencies during other hours.
  100.  
  101. Computer Emergency Response Team/Coordination Center (CERT/CC)
  102. Software Engineering Institute
  103. Carnegie Mellon University
  104. Pittsburgh, PA 15213-3890
  105.  
  106. Past advisories and other information related to computer security are
  107. available for anonymous ftp from the cert.sei.cmu.edu (192.88.209.5) system.
  108.  
  109.